package ch.bfh.abhmcm.SoftwareEngineeringAndDesign.view.mainframe.mainframeSub;

import java.awt.BorderLayout;
import java.awt.Toolkit;
import java.net.URL;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;

public class CMSLoadScreen extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private JLabel background;
	
	public CMSLoadScreen() {
		this.setUndecorated(true);
		this.setLayout(new BorderLayout());
		URL pic = getClass().getResource("/TaskIcon.png");
		this.setIconImage(Toolkit.getDefaultToolkit().getImage(pic));

		URL pic2 = getClass().getResource("/splashscreen2.jpg");
		this.background = new JLabel(new ImageIcon(pic2));
		
		this.add(this.background, BorderLayout.CENTER);

	}
}
